/**
 * author: XGP
 * date: 2018/07/25
 * des: 人员招聘-招聘规划
 */
import request from '@/utils/request'

/**
 * 查询招聘信息状态统计
 */
export function getPlanaudit() {
  return request({
    url: '/recruitplanverifys/findStatusCount',
    method: 'get'
  })
}

/**
 * 待审批列表
 */
export function getRequireList(data) {
  return request({
    url: '/recruitplanverifys/findAllIng',
    method: 'get',
    params: data
  })
}

/**
 * 已审批列表
 */
export function getApprovedList(data) {
  return request({
    url: '/recruitplanverifys/findAllEnd',
    method: 'get',
    params: data
  })
}


/**
 * 招聘规划审批
 */
export function approvePlan(data) {
  return request({
    url: '/hr/recruit/planaudit/approvePlan/mock',
    method: 'get',
    data
  })
}


/**
 * 审批通过
 */
export function approvePlanPass(data) {
  return request({
    url: '/recruitplanverifys/deal',
    method: 'post',
    data: data
  })
}

/**
 * 审批不通过
 */
export function approvePlanNo(data) {
  return request({
    url: '/recruitplanverifys/deal',
    method: 'post',
    data: data
  })
}


export function getPlanDetail(planId) {
  return request({
    url: '/hr/recruitment/recruitplan/find/' + planId,
    method: 'get'
  })
}


export function getPosition(data) {
  return request({
    url: '/hr/recruitment/recruitplan/findPositionByOrg',
    method: 'get',
    params: data
  })
}
